namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class TemplateMap : ClassMap<TemplateDataModel>
    {
        public TemplateMap()
        {
            this.Table("Template");
            this.LazyLoad();
            this.Id(x => x.Id).Column("TemplateID");
            this.Map(x => x.TemplateName).Not.Nullable().Length(256);
            this.Map(x => x.TemplateUrl).Length(1024);
            this.Map(x => x.IsListView).Not.Nullable();
        }
    }
}